package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.annotation.ExcelColumn;
import com.lh.common.annotation.ExcelExportRule;
import com.lh.common.annotation.ExcelFile;
import com.lh.common.enums.IsDel;
import com.lh.common.enums.TrueFalseEnum;
import com.lh.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_user:用户表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_user")
@Data
@ExcelFile(titleName = "tag")
public class User implements Serializable {
    @ApiModelProperty(value = "")
    @TableField(value = "uid")
    @TableId
    private Long uid;

    @ExcelColumn(value="用户名", col = 1)
    @ExcelExportRule(label = "用户名")
    @ApiModelProperty(value = "用户名",allowEmptyValue=true,required = true)
    @Column(name = "name")
    private String name;

    @ApiModelProperty(value = "密码")
    @Column(name = "password")
    private String password;

    @ExcelColumn(value="手机号码", col = 2)
    @ExcelExportRule(label = "手机号码")
    @ApiModelProperty(value = "手机号码",allowEmptyValue=true,required = true)
    @Column(name = "phone")
    private String phone;

    @ApiModelProperty(value = "区域")
    @ExcelExportRule(label = "区域")
    @Column(name = "region")
    private String region;

    @ApiModelProperty(value = "详细地址")
    @ExcelExportRule(label = "详细地址")
    @Column(name = "address")
    private String address;

    @ApiModelProperty(value = "状态 TRUE:正常  FALSE:失效")
    @Column(name = "status")
    private TrueFalseEnum status;

    @ApiModelProperty(value = "类型  GENERAL:普通用户  ROBOT: 机器人")
    @Column(name = "type")
    private UserTypeEnum type;

    @ApiModelProperty(value = "")
    @ExcelExportRule(label = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除 YES：已删除 NO：未删除")
    @Column(name = "is_del")
    private IsDel isDel;

    /**
     * ovmal_user
     */
    private static final long serialVersionUID = 1L;
}
